Author: Administrator

HALLOWEEN TOWN ACTIVITY

Georgia Institute of Technology

STEP 1: Create your Halloween Scene and a ghost that we will make spin.

STEP 2: Tape the longest axle to the ghost.

STEP 3: Attach the axle to the motor.
Attach the motor to the PicoCricket.

STEP 4: When should we have the ghost spin?
We may want it to be a surprise and have the ghost move when it senses there are people around…
We could determine this through the loudness around our Halloween scene. We wait until the loudness gets above a certain level and then have the ghost spin!
So let’s plug the sound sensor to the PicoCricket.

STEP 6:
Check the ports your light displays are plugged into. They will be plugged into two of the following:

STEP 7:

Look at the top of the screen at the picture of the PicoCricket.

STEP 5: Let’s add some spooky lights! The color of the lights will be random.
Plug two light displays into the PicoCricket.
Now, let’s program our Halloween town.

In our example, the light sensors are plugged into port 1 (one dot) and port 4 (four dots).

If for example, one of the light displays is plugged into port 1, then at the top of the screen click on the on the picture of the

The PicoCricket at the top of the screen should now look like this:

STEP 8:

Since we have two light displays, we have to specify the ports that they are plugged into on the PicoCricket, so that our program can tell the difference between the two.
The next few steps will show you how this can be done.

Your cursor should now look like this:

Place the cursor over the code that sets the color of the light .

The code will now look like this:

Go through steps 6-8 for the other light display.
Notice that our program uses the light displays, the motor, and the sound sensor so you should have all of those plugged into your PicoCricket.
Now that we have completed our program we can download it to the PicoCricket and try it!